package com.jwsoft.manager.core.gateway.controller.bigScreen;

import com.bifang.engine.assistant.core.domain.AppResponse;
import com.bifang.engine.protect.core.annotation.NoSignCrypto;
import com.jwsoft.manager.common.vo.bigScreen.analysisXq.StuEnrollXxtjVO;
import com.jwsoft.manager.common.vo.bigScreen.analysisYbm.StuEnrollXxtjQueryVO;
import com.jwsoft.manager.common.vo.bigScreen.analysisYj.*;
import com.jwsoft.manager.core.integration.bigScreen.AnalysisYjIntegration;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/doc/api/yj")
@Tag(name = "大屏学位预警接口", description = "大屏学位预警接口")
public class AnalysisYjController {
    @Autowired
    private AnalysisYjIntegration analysisYjIntegration;

    @Operation(summary = "学位预警排名分析",description = "学位预警排名分析")
    @PostMapping(value = "/EduAnalysisYj0001", produces = "application/json;charset=UTF-8")
    @NoSignCrypto
    public AppResponse<List<DegreeInfoVO>> getDegreeInfo(@RequestBody @Validated DegreeInfoQueryVO vo) {

        return AppResponse.successData(analysisYjIntegration.getDegreeInfo(vo));
    }
    @Operation(summary = "学位预警信息总览",description = "学位预警信息总览")
    @PostMapping(value = "/EduAnalysisYj0002", produces = "application/json;charset=UTF-8")
    @NoSignCrypto
    public AppResponse<AnalysisDegreeVO> getAnalysisDegreeInfo(@RequestBody @Validated DegreeInfoQueryVO vo) {

        return AppResponse.successData(analysisYjIntegration.getAnalysisDegreeInfo(vo));
    }
    @Operation(summary = "学位预警排名分析详情",description = "学位预警排名分析详情")
    @PostMapping(value = "/EduAnalysisYj0003", produces = "application/json;charset=UTF-8")
    @NoSignCrypto
    public AppResponse<DegreeSchDetailVO> getDegreeDetail(@RequestBody @Validated DegreeDetailVO vo) {

        return AppResponse.successData(analysisYjIntegration.getDegreeDetail(vo));
    }
}
